package cn.yunyichina.provider.guide.main;

import javax.annotation.Resource;

import cn.yunyichina.provider.framework.dubbo.service.impl.YytServiceImpl;
import cn.yunyichina.provider.guide.service.impl.GuidePayingServiceImpl;
import cn.yunyichina.provider.guide.service.impl.GuideSyncClinicAddressInfoServiceImpl;
import cn.yunyichina.provider.guide.service.impl.GuideSyncServiceImpl;
import cn.yunyichina.provider.iface.service.IGuide;

/**
 * 智慧导医服务子系统dubbo入口
 * 
 * 
 */
public class GuideServiceImpl extends YytServiceImpl implements IGuide {
	
	@Resource
	private GuideSyncServiceImpl guideSyncService;
	
	@Resource
	private GuideSyncClinicAddressInfoServiceImpl guideSyncClinicAddressInfoService;
	
	@Resource
	private GuidePayingServiceImpl guidePayingService;

    @Override
    public String getErrorCode() {

        return "8000";
    }
    
    @Override
    public void doGuideSync() {
    	guideSyncService.doGuideSync();
    	guideSyncClinicAddressInfoService.doGuideSync();
    	guidePayingService.doSync();
    }
}
